import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Observer } from 'rxjs/Observer';

import { Basemap } from '../models';
import { basemaps } from '../components/basemaps/basemaps';

@Injectable()
export class BasemapsService {

  constructor() { }

  basemaps(): Observable<Basemap[]> {
    return Observable.create((observer: Observer<Basemap[]>) => {
      observer.next(basemaps);
      observer.complete();
    });
  }

}
